<s_templ_list>

<script type="text/javascript">
//<![CDATA[
$(function(){
	$("#frm-search").submit(function(){
		if($("[name=sch_keyword]").val().trim()){
			location.replace('/chmanager/board/list/id/[##_id_##]/sch_keyname/'+encodeURIComponent($("[name=sch_keyname]").val())+'/sch_keyword/'+encodeURIComponent($("[name=sch_keyword]").val()));
		}
		return false;
	});
});
	
//]]>
</script>

<div class="box_type02">
<h2 class="txt">유지보수</h2>
<p class="icon"><a href="javascript:void(0);" class="icon_m04">매뉴얼</a></p>

<!--[s] 검색 -->
<form id="frm-search">
	
	<fieldset class="search_type01 c_box">
		<legend>검색</legend>
		<select name="sch_keyname" style="width:100px;">
			<option value="title">제목</option>
			<option value="content">내용</option>
			<option value="writer">작성자</option>
		</select>
		<input type="text" id="" name="sch_keyword" class="ip" style="width:134px;" value="" />
		<input type="submit" class="btn_search" title="검색" value="" />
	
		<a href="[##_brd_btn_write_##]" class="right"><img src="/board/skin/[##_skin_name_##]/images/btn_write.gif" alt="등록" /></a>
	</fieldset>
</form>
<!--[e] 검색 -->

<!--[s] 목록 -->
<table cellspacing="0" summary="유지보수" class="lines">
	<caption>유지보수</caption>
	<thead>
	<tr>
		<th scope="col" width="94">No.</th>
		<th scope="col">제목</th>
		<th scope="col" width="120">작성자</th>
		<th scope="col" width="100">등록일</th>
		<th scope="col" width="42">조회수</th>
	</tr>
	</thead>
	<tbody>
	<s_board_list>
	<tr>
		<th scope="row"><p>[##_brd_list_no_##]</p></th>
		<td class="tal"><div>[##_brd_list_reply_##]<a href="[##_brd_list_view_link_##]" class="[##_brd_list_css_reply_##]">[##_brd_list_icon_reply_##][##_brd_list_title_##]</a>[##_brd_list_new_##]</div></td>
		<td><div>[##_brd_list_writer_##]</div></td>
		<td><div>[##_brd_list_date_##]</div></td>
		<td><div>[##_brd_list_visited_##]</div></td>
	</tr>
	</s_board_list>
	</tbody>
</table>
<!--[e] 목록 -->

<!--[s] 페이징 -->
<div class="paging_all c_box">
	<div class="paging">
		[##_PAGING_##]
	</div>
</div>
<!--[e] 페이징 -->

<!--[s] Tip -->
<dl id="tip" class="mt30">
	<dt>Tip</dt>
	<dd>인터넷익스플로러의 '호환성보기' 기능을 사용중인 접속자에게 자동으로 최신버전 기준으로 사이트를 출력하도록 처리합니다.</dd>
	<dd>코딩방식에 따라 특정 버전의 브라우저에서 사이트가 깨질수 있으니, 충분한 테스트 후 기능을 설정해 주시기 바랍니다.</dd>
</dl>
<!--[e] Tip -->
</div>
	
	
	
	
	<!-- 게시판 리스트[s] -->
	<!--<table width="680" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td>
			<table width="100%" border="1" cellspacing="0" cellpadding="0">
			<tr>
				<td colspan="4">
					<table border="0" cellspacing="0" cellpadding="0" width="100%">
					<tr>
						<td width="50" class="td1">번호</td>
						<td class="td1">제목</td>
						<td width="90" class="td1">등록일</td>
						<td width="50" class="td1">조회수</td>
					</tr>
					</table>
				</td>
			</tr>
			<s_board_list>
			<tr align="center">
				<td width="50" class="td2">[##_brd_list_no_##]</td>
				<td style="text-align:left;">[##_brd_list_reply_##]<a href="[##_brd_list_view_link_##]">[##_brd_list_title_##]</a>[##_brd_list_new_##]</td>
				<td width="90" class="td2">[##_brd_list_date_##]</td>
				<td width="51" class="td2">[##_brd_list_visited_##]</td>
			</tr>
			<tr>
				<td colspan="4" class="b_line"></td>
			</tr>
			</s_board_list>
			<s_no_data>
			<tr>
				<td height="22" colspan="4" align="center">등록된 내용이 없습니다.</td>
			</tr>
			</s_no_data>
			</table>
		</td>
	</tr>
	<tr>
		<td class="b_btn">
		<s_button_1>
			<a href="[##_brd_btn_write_##]" onFocus='this.blur()'><img src="/images/board/btn_write.gif" border="0"></a>
		</s_button_1>
		</td>
	</tr>
	<tr>
		<td height="40"  align="center">
		<div class="paging_all c_box">
				<div class="paging">
					[##_PAGING_##]
				</div>
			</div>
			
		</td>
	</tr>
	<tr>
		<td style="padding : 15 0 0 0">
			<table width="368" border="0" cellspacing="0" cellpadding="0" align="center" background="/images/board/b_search_bg.gif" height="37">
			<tr>
				<td>
					<table width="282" border="0" cellspacing="0" cellpadding="0" align="right">
					<form name="frm">
					[##_brd_hidden_field_##]
					<tr>
						<td align="right">
							<select name="keyname" style="FONT-SIZE: 9pt; BACKGROUND-COLOR: #FFFFFF">
							<option value="subject">제목</option>
							<option value="writer">작성자</option>
							<option value="content">내용</option>
							</select>
						</td>
						<td width="130" align="center">
							<input type="text" name="keyword" style="WIDTH: 120px">
						</td>
						<td width="90"><input type="image" src="/images/board/btn_search.gif" border="0"></td>
					</tr>
					</form>
					</table>
				</td>
			</tr>
			</table>
		</td>
	</tr>
	</table>  -->
	<!-- 게시판 리스트[e] -->
</s_templ_list>

<s_templ_write>
	<!-- 게시판 쓰기[s] -->
	<div class="box_type02">
			<h2 class="txt">유지보수</h2>
			<p class="icon"><a href="javascript:void(0);" class="icon_m04">매뉴얼</a></p>

			<!--[s] 쓰기 -->
			<form name="frmReg" method="post" action="/chmanager/boardDbjob" enctype="multipart/form-data">
				<input type="hidden" name="dbjob" value="[##_hidden_dbjob_##]">
				<input type="hidden" name="id" value="[##_hidden_id_##]">
				<input type="hidden" name="no" value="[##_hidden_no_##]">
				<input type="hidden" name="board_name" value="[##_hidden_board_name_##]">
				<input type="hidden" name="ref_id" value="[##_hidden_ref_id_##]">
				<input type="hidden" name="depth" value="[##_hidden_depth_##]">
				<input type="hidden" name="ansnum" value="[##_hidden_ansnum_##]">
				<fieldset class="board_write">
					<legend>유지보수</legend>
					<table cellspacing="0" summary="유지보수" class="lines">
						<caption>유지보수</caption>
						<tr>
							<th scope="row" width="140"><p class="point">작성자</p></th>
							<td>
								<div><input type="text" id="title" name="writer" class="ip_i" style="width:181px;" value="[##_writer_##]" /></div>
							</td>
						</tr>
						<!--<tr>
							<th scope="row"><p class="point">연락처</p></th>
							<td>
								<div>
									<input type="text" id="" name="" class="ip_i" style="width:23px;" value="" />
									<span class="txt_type01">-</span>
									<input type="text" id="" name="" class="ip_i" style="width:43px;" value="" />
									<span class="txt_type01">-</span>
									<input type="text" id="" name="" class="ip_i" style="width:43px;" value="" />
								</div>
							</td>
						</tr>
						<tr>
							<th scope="row"><p class="point">작업기한</p></th>
							<td>
								<div>
									<input type="text" id="st_day" name="" class="ip_i" style="width:155px;" value="" />
									<a href="javascript:void(0);" class="btn_calendar">달력보기</a>
								</div>
							</td>
						</tr>  -->
						<tr>
							<th scope="row" width="140"><p class="point">제목</p></th>
							<td>
								<div><input type="text" id="title" name="title" class="ip_i" style="width:584px;" value="[##_title_##]" /></div>
							</td>
						</tr>
						<tr>
							<th scope="row" class="vat"><p class="point">내용</p></th>
							<td>
								<div>
									<textarea name="content" rows="" cols="" class="ip_t">[##_content_##]</textarea>
								</div>
							</td>
						</tr>
						<tr>
							<th scope="row"><p class="point">첨부파일1</p></th>
							<td>
								<div id="queue"></div>
								<div>
									<input type="file" id="" name="files[]" class="ip_i" style="width:100%;" value="" />
									[##_file_info1_##]
								</div>
							</td>
						</tr>
						<tr>
							<th scope="row"><p class="point">첨부파일2</p></th>
							<td>
								<div>
									<input type="file" id="" name="files[]" class="ip_i" style="width:100%;" value="" />
									[##_file_info2_##]
								</div>
							</td>
						</tr>
					</table>
				</fieldset>
			</form>
			<!--[e] 쓰기 -->

			<!-- [s] 버튼 -->
			<ul class="botton_box mt30">
				<li class="center">
					<a href="javascript:frmReg.submit();"><img src="/board/skin/[##_skin_name_##]/images/btn_ok.gif" alt="확인" /></a>
					<a href="javascript:void(0);"><img src="/board/skin/[##_skin_name_##]/images/btn_modify.gif" alt="수정" /></a>
					<a href="javascript:void(0);"><img src="/board/skin/[##_skin_name_##]/images/btn_delete.gif" alt="삭제" /></a>
					<a href="javascript:void(0);"><img src="/board/skin/[##_skin_name_##]/images/btn_cancel.gif" alt="취소" /></a>
				</li>
			</ul>
			<!-- [e] 버튼 -->

			<!--[s] Tip -->
			<dl id="tip" class="mt30">
				<dt>Tip</dt>
				<dd>인터넷익스플로러의 '호환성보기' 기능을 사용중인 접속자에게 자동으로 최신버전 기준으로 사이트를 출력하도록 처리합니다.</dd>
				<dd>코딩방식에 따라 특정 버전의 브라우저에서 사이트가 깨질수 있으니, 충분한 테스트 후 기능을 설정해 주시기 바랍니다.</dd>
			</dl>
			<!--[e] Tip -->
		</div>
	<!-- 게시판 쓰기[e] -->
</s_templ_write>
<s_templ_view>
	<script type="text/javascript">
		//<![CDATA[  
		function frmValid(){
			with(document.frmComment){
			}
			return true;
		}
		
		function board(db){ //게시판 상세 액션별 페이지 분기
			var submit_url = '/chmanager/boardDbjob';
			if(db == 'd'){
				if(!confirm("삭제 하시겠습니까?")) return;
			}else{
				submit_url = '/chmanager/board/write/id/[##_hidden_id_##]/no/[##_hidden_no_##]';
			}
			
			with(document.frmReg){
				dbjob.value = db;
				action = submit_url;
				submit();
			}
		}
		
		function commentModify(cno){
			$.ajax({
				type: "POST",
				url: "/board/ajax_comment",
				data: $("[name=frmComment]").serialize()+'&no='+cno,
				success: function(data){
					$("[name=b_comment]").val(data);
					with(document.frmComment){
						dbjob.value = 'u';
						no.value = cno;
					}
				},
				error:function(error){
					alert('에러');
				}
			});
		}
		
		function commentDelete(cno){
			if(!confirm('삭제하시겠습니까?')) return;
			with(document.frmComment){
				dbjob.value = 'd';
				no.value = cno;
				submit();
			}
		}
		//]]>
	</script>
	<!-- 게시판 읽기[s] -->
	<div class="box_type02">
		<h2 class="txt">유지보수</h2>
		<p class="icon"><a href="javascript:void(0);" class="icon_m04">매뉴얼</a></p>

		<!--[s] 상세 -->
		<form name="frmReg" method="post" enctype="multipart/form-data">
			<input type="hidden" name="dbjob" value="">
			<input type="hidden" name="id" value="[##_hidden_id_##]">
			<input type="hidden" name="no" value="[##_hidden_no_##]">
			<input type="hidden" name="board_name" value="[##_hidden_board_name_##]">
		</form>
		<fieldset class="board_write">
			<legend>유지보수</legend>
			<table cellspacing="0" summary="유지보수" class="lines">
				<caption>유지보수</caption>
				<tr>
					<th scope="row" width="140"><p class="bold">제목</p></th>
					<td class="view">
						<div>[##_view_title_##]</div>
					</td>
				</tr>
				<tr>
					<th scope="row" class="vat"><p class="bold">내용</p></th>
					<td class="view">
						<div class="cont">
							[##_view_content_##]						</div>
					</td>
				</tr>
				<tr>
					<th scope="row"><p class="bold">첨부파일</p></th>
					<td class="view">
						<div>
							[##_view_file_##]
						</div>
					</td>
				</tr>
			</table>
		</fieldset>
		<!--[e] 상세 -->
		
		<s_comment>
			<!--[s] 덧글 -->
			<fieldset class="board_write mt10">
				<legend>유지보수</legend>
				<table cellspacing="0" summary="유지보수" class="lines">
					<caption>유지보수</caption>
					<s_comment_list>
					<tr>
						<th scope="row" width="140"><p class="bold">[##_comment_name_##]</p></th>
						<td class="view">
							<div class="cont">
								[##_comment_content_##]
							</div>
						</td>
						<td width="65">
							<div class="btn_type_i2">
								<button type="button" class="pen" onclick="commentModify([##_comment_no_##])">작성</button>
								<button type="button" class="del" onclick="commentDelete([##_comment_no_##])">삭제</button>
							</div>
						</td>
					</tr>
					</s_comment_list>
				</table>
			</fieldset>
			<!--[e] 덧글 -->
	
			<!--[s] 덧글 등록 -->
			<form name="frmComment" method="post" action="/chmanager/boardCommentDbjob" onsubmit="return frmValid()">
				<input type="hidden" name="dbjob" value="i" />
				<input type="hidden" name="name" value="[##_comment_name_##]" />
				<input type="hidden" name="user_id" value="[##_user_id_##]" />
				<input type="hidden" name="board_id" value="[##_board_id_##]" />
				<input type="hidden" name="board_no" value="[##_board_no_##]" />
				<input type="hidden" name="no" value="" />
				<fieldset class="board_write mt10">
					<legend>유지보수</legend>
					<table cellspacing="0" summary="유지보수" class="lines">
						<caption>유지보수</caption>
						<tr>
							<td class="noline">
								<div>
									<textarea name="b_comment" rows="" cols="" style="width:90%; height:63px;" class="ip_t"></textarea>
									<input type="submit" class="btn_write2 ml6" title="등록" value="" />
								</div>
							</td>
						</tr>
					</table>
				</fieldset>
			</form>
			<!--[e] 덧글 등록 -->
		</s_comment>	
		<!-- [s] 버튼 -->
		<ul class="botton_box mt30">
			<li class="center">
				<a href="/chmanager/board/list/id/[##_hidden_id_##]"><img src="/board/skin/[##_skin_name_##]/images/btn_list.gif" alt="목록" /></a>
				<s_button_reply>
					<a href="javascript:board('r')"><img src="/board/skin/[##_skin_name_##]/images/btn_reply.gif" alt="답변" /></a>
				</s_button_reply>
				<s_button_modify>
					<a href="javascript:board('u')"><img src="/board/skin/[##_skin_name_##]/images/btn_modify.gif" alt="수정" /></a>
				</s_button_modify>
				<s_button_delete>
					<a href="javascript:board('d')"><img src="/board/skin/[##_skin_name_##]/images/btn_delete.gif" alt="삭제" /></a>
				</s_button_delete>
			</li>
		</ul>
		<!-- [e] 버튼 -->

		<!--[s] Tip -->
		<dl id="tip" class="mt30">
			<dt>Tip</dt>
			<dd>인터넷익스플로러의 '호환성보기' 기능을 사용중인 접속자에게 자동으로 최신버전 기준으로 사이트를 출력하도록 처리합니다.</dd>
			<dd>코딩방식에 따라 특정 버전의 브라우저에서 사이트가 깨질수 있으니, 충분한 테스트 후 기능을 설정해 주시기 바랍니다.</dd>
		</dl>
		<!--[e] Tip -->
	</div>
	<!-- 게시판 읽기[e] -->
</s_templ_view>
		
